package com.xiaoshuidi.cloud.module.system.api.apartment;

import com.xiaoshuidi.cloud.framework.common.pojo.CommonResult;
import com.xiaoshuidi.cloud.framework.common.util.collection.CollectionUtils;
import com.xiaoshuidi.cloud.module.system.api.apartment.dto.TaxRateConfigDTO;
import com.xiaoshuidi.cloud.module.system.api.dept.dto.DeptLeaderRespDTO;
import com.xiaoshuidi.cloud.module.system.api.dept.dto.DeptRespDTO;
import com.xiaoshuidi.cloud.module.system.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;

@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - 门店管理")
public interface ApartmentManageApi {

    String PREFIX = ApiConstants.PREFIX + "/apartment";

    @GetMapping(PREFIX + "/creat")
    @Operation(summary = "创建门店管理")
    CommonResult<Boolean> creatApartment(@RequestParam("apartmentId") Long apartmentId,
                                      @RequestParam("apartmentName") String apartmentName);

    @GetMapping(PREFIX + "/update")
    @Operation(summary = "创建门店管理")
    CommonResult<Boolean> updateApartment(@RequestParam("apartmentId") Long apartmentId,
                                         @RequestParam("apartmentManageEnumCode") Integer apartmentManageEnumCode);

    /**
     * 费项配置
     *
     * @param apartmentId
     * @return
     */
    @GetMapping("/getConfigFeesList")
    @Operation(summary = "费项配置")
    CommonResult<List<TaxRateConfigDTO>> getConfigFeesList(@RequestParam("apartmentId") Long apartmentId);

}
